package changeEmployeeTransaction.changeMethodTransaction;

import methods.PaymentMethod;
import addEmployeeTransaction.Employee;
import changeEmployeeTransaction.ChangeEmployeeTransaction;
import database.PayrollDatabase;

public abstract class ChangeMethodTransaction extends ChangeEmployeeTransaction {
	public ChangeMethodTransaction(int empId, PayrollDatabase database) {
		super(empId, database);
	}

	@Override
	protected void change(Employee e) {
		e.setMethod(getMethod());
	}

	protected abstract PaymentMethod getMethod();
}
